package com.msb.servicemap.controller;

import com.msb.internalcommon.dto.ResponseResult;
import com.msb.servicemap.service.ServiceMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: jiudianliu
 * @Date: 2023/7/7 - 07 - 07 - 18:37
 * @Description: com.msb.servicemap.controller
 * @version: 1
 * @Res.0
 */

/**
 * 服务管理控制器
 */
@RestController
public class ServiceController {

    @Autowired
    private ServiceMapService serviceMapService ;


    /**
     * 创建服务
     * @param name
     * @return
     */

    @PostMapping("/service/add")
    public ResponseResult add(String name) {
        return serviceMapService.add(name);
    }
}
